﻿<UserControl x:Class="MemoBoss.GameOverDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:local="clr-namespace:MemoBoss"
    d:DataContext="{d:DesignData /SampleData/MainViewModelSampleData.xaml}"
    mc:Ignorable="d" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="500" d:DesignWidth="440" >
    <UserControl.Resources>
        <local:ColorConverter x:Key="colorConverter"></local:ColorConverter>
        <local:VisibilityConverter x:Key="visibilityConverter"></local:VisibilityConverter>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Width="440">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Border Grid.RowSpan="3"  Background="{StaticResource PhoneAccentBrush}" CornerRadius="20" Opacity="0.7"></Border>
        <TextBlock  Grid.Row="0" Margin="0,0,0,10" FontSize="50" TextAlignment="Center" FontFamily="../Fonts/OutlineTwelve.ttf#OutlineTwelve" IsHitTestVisible="False">Game over</TextBlock>
        <StackPanel Grid.Row="1" MinHeight="100">
            <Grid Margin="30,0,30,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>
                    <!--<RowDefinition Height="*"/>
                    <RowDefinition Height="*"/>-->
                </Grid.RowDefinitions>
                <TextBlock Grid.Row="0" Grid.Column ="0" Margin="5,0,5,0" TextAlignment="Right" IsHitTestVisible="False">Your score:</TextBlock>
                <TextBlock Grid.Row="1" Grid.Column="0" Margin="5,0,5,0" TextAlignment="Right" IsHitTestVisible="False">High score:</TextBlock>
                <!--<TextBlock Grid.Row="2" Grid.Column="0" Margin="5,0,5,0" TextAlignment="Right" IsHitTestVisible="False">Best performance:</TextBlock>
                <TextBlock Grid.Row="3" Grid.Column="0" Margin="5,0,5,0" TextAlignment="Right" IsHitTestVisible="False">Max good/wrong moves:</TextBlock>-->
                <TextBlock Grid.Row="0" Grid.Column="1" Margin="5,0,5,0" TextAlignment="Left"  x:Name="GameScore"  IsHitTestVisible="False">54645</TextBlock>
                <TextBlock Grid.Row="1" Grid.Column="1" Margin="5,0,5,0" x:Name="HighScore" TextAlignment="Left" IsHitTestVisible="False">12312312</TextBlock>
                <!--<TextBlock Grid.Row="2" Grid.Column="1" Margin="5,0,5,0" x:Name="MovesToPairsRatio" TextAlignment="Left" IsHitTestVisible="False"> 66% (level 12)</TextBlock>
                <TextBlock Grid.Row="3" Grid.Column="1" Margin="5,0,5,0" x:Name="MaxGoodBad" TextAlignment="Left" IsHitTestVisible="False">3/4</TextBlock>-->
            </Grid>
            
                <local:Scoreboard Height="240"  Margin="30,10,30,0" x:Name="ScoreBoard"></local:Scoreboard>
            
        </StackPanel>
        <StackPanel  Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,0,0,15">
            <Button Content="Main Menu" Name="btn1"  HorizontalAlignment="Stretch"  Height="72"  Width="200" Click="btn1_Click" />
            <Button Content="Try again" Name="btn2"  HorizontalAlignment="Stretch"  Height="72"  Width="200" Click="btn2_Click" />
        </StackPanel>
    </Grid>
</UserControl>
